package com.fand.manager.model.rolemenu;

import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * Author: zhangjiabin
 * Email: javaboyok@163.com
 * CreateDate: 2021/6/10
 * Version: 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysRoleMenuTreeDTO {

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "pid")
    private Long pid;

    @ApiModelProperty(value = "菜单名称")
    private String title;

    @ApiModelProperty(value = "是否选中")
    private Boolean checked;

    @ApiModelProperty(value = "是否展开")
    private Boolean spread;

    @ApiModelProperty(value = "子节点")
    private List<SysRoleMenuTreeDTO> children;

}
